from django.db import models
from datetime import datetime

# Create your models here.
# Create your models here.
class ogImage(models.Model):
    # name = models.CharField(max_length=50)
    # upload_to 指定上传文件位置

    name = models.ImageField(upload_to="ogImage/%m%Y/")
    addtime  = models.DateTimeField(default=datetime.now)


    # 返回名称
    def __str__(self):
        return self.name